package lab02.Test06;
//
/**
 * Created by Administrator on 2017/10/14.
 */
public class Circle {
    //1.属性：
    double radius;
    double area;
    double perimeter;
    double PI = 3.14;

    //2.行为，方法
    public void getCircleArea(double radius, double PI) {
        area = PI * radius * radius;
        System.out.println("圆面积为：" + area);
    }

    public void getCirclePerimeter(double radius, double PI) {
        perimeter = 2 * PI * radius;
        System.out.println("圆周长为：" + perimeter);
    }
}
